package com.zyq.validation.pojo.entity;

import lombok.Data;
import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
public class Customer  implements Serializable {

    @NotBlank(message = "会员卡不能为空")
    private String idCardNo;

    @Valid
    private User user;
}

/*
{
     "idCardNo":"432432",
     "user": {
            "userName": "fdaffdsfds",
            "age": "-3",
            "pwd":"3432432"
     }
}

*/